#include <QMainWindow>
#include <QImage>

#ifndef FUNCTION_H
#define FUNCTION_H

class Function {
public:
    Function(QImage image);

    //图形变换
    QImage expandPicture();
    QImage shrinkPicture(QImage *image);
    QImage revolvePicture(QImage *image);

    //滤波
    QImage squarePicture(QImage *image);
    QImage midPicture(QImage *image);
    QImage gaosiPicture(QImage *image);
    QImage sidesPicture(QImage *image);
    QImage averagePicture(QImage *image);

    //涂鸦
    QImage strawPicture(QImage *image);
    QImage bucketPicture(QImage *image);
    QImage paintPicture(QImage *image);

    //其他
    QImage scissorsPicture(QImage *image);
    QImage jigsawPicture(QImage *image);
    QImage textPicture(QImage *image);

private:

    QImage initialImage;//存储原始图片
    QImage lastImage;//存储上一步图片
    QImage finalImage;//存储最新修改后的图片

};

#endif // FUNCTION_H
